import request from '@/utils/request'

const approve = {
  // 待我审批记录
  myApproveList(params) {
    return request.get('/cgzh/approve/myApproveList', {
      params
    })
  },
  // 我已审批记录
  myApprovedList(params) {
    return request.get('/cgzh/approve/myApprovedList', {
      params
    })
  },
  getByBusinessId(businessId) {
    return request.get(`/cgzh/approve/getByBusinessId/${businessId}`);
  },
  opApprove(data) {
    return request.post('/cgzh/approve/approve', data);
  },
}

export default approve;
